import pytest
from selenium import webdriver
from A3mall.Page.Page import Page
from A3mall.Page.Page1 import Page1
from A3mall.Page.Page2 import Page2
# 测试类
class Test_Case():
    @pytest.fixture(scope='function')
    def driver(self):
        driver=webdriver.Edge()
        yield driver
        # 隐式等待
        driver.implicitly_wait(10)
        driver.quit()

    def test_01_login(self,driver):
        po=Page(driver)
        po.a3mall_luoji1_login()

    def test_02_sreach(self,driver):
        po = Page1(driver)
        po.a3mall_luoji2()

    def test_03_add(self,driver):
        po=Page2(driver)
        po.a3mall_luoji3()
if __name__ == '__main__':
    pytest.main()



